import os
basedir = os.path.abspath(os.path.dirname(__file__))

class Config:
    SQLALCHEMY_DATABASE_URI = 'mysql+mysqlconnector://root:root@localhost:3306/chiibug'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    WECHAT_TOKEN = "wyt0206"
    SECRET_KEY = "4914eb12bfafd533c6886483720ceb9d"

    # 分页配置
    PER_PAGE = 2

    # 隐私级别
    PRIVACY_LEVELS = {
        1: "公开",
        2: "仅注册用户可见",
        3: "仅自己可见"
    }
class DevelopmentConfig(Config):
        DEBUG = True

config = {
    'default': Config,
    'development': DevelopmentConfig
}